/*
package zut.edu.cn.concertticketmanagementsystem.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import zut.edu.cn.concertticketmanagementsystem.entity.Ticket;
import zut.edu.cn.concertticketmanagementsystem.service.Ticketservice;

import javax.xml.ws.Service;
import java.util.List;

@RestController
public class Controller {

    @Autowired
    private Ticketservice  ticketservice;

    @RequestMapping("queryAll")
    public List queryAll(){
        List<Ticket>t=ticketservice.querryAll();
        for(Ticket ticket:t){
            System.out.println(ticket.toString());
        }
        return t;
    }

}
*/
